import uuid
flag1=uuid.uuid4()
flag="flag{%s}"%flag1
print(flag)
a = 7
b = 22

c=''
for j in flag:
    if ord(j)>=ord("a") and ord(j)<=ord("z"):
        cha=ord(j)-ord('a')
        c+=chr((a * cha+ b) % 26+ord('a'))
    else:
        c+=j
print(c)